#ifndef KERNEL_INTERRUPT_H_
#define KERNEL_INTERRUPT_H_
#include "stdint.h"
typedef void* intr_handler;

void idt_init();

// 定义处理器对可屏蔽中断是否打开, 设置eflags寄存器if位
enum intr_status {
    INTR_OFF, 
    INTR_ON
};

enum intr_status intr_get_status();
enum intr_status intr_set_status(enum intr_status);
enum intr_status intr_enable();
enum intr_status intr_disable();
void register_handler(uint8_t vector_no, intr_handler func);
#endif //  INTERRUPT_H_
